System.Buffers.ArrayPool<T> Shared { get; set; }

Summary

Retrieves a shared T:System.Buffers.ArrayPool`1 instance.

Remarks

The shared pool provides a default implementation of T:System.Buffers.ArrayPool`1 that's intended for general applicability. It maintains arrays of multiple sizes, and may hand back a larger array than was actually requested, but will never hand back a smaller array than was requested. Renting a buffer from it with M:System.Buffers.ArrayPool`1.Rent(System.Int32) will result in an existing buffer being taken from the pool if an appropriate buffer is available or in a new buffer being allocated if one is not available. The shared pool instance is created lazily on first access.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.